{extend name="base_iframe" /}

{block name="css"}
  <link rel="stylesheet" href="__ACSS__/goods/index.css">
{/block}

{block name="body"}
<section class="content-header">

</section>

<section class="content">

  <!-- 列表 -->
  <div class="row">
    <div class="col-xs-12">

      <div class="box box-info">

        <div class="box-header">
          <a href="javascript:;" title="批量允许" class="btn btn-success btn-social-icon batch-btn" data-title="允许" data-type="enable" data-url="{:url('batchProc')}"><i class="fa  fa-check-square-o"></i></a>

          <a href="javascript:;" title="批量禁止" class="btn btn-danger btn-social-icon batch-btn" data-title="禁止" data-type="disable" data-url="{:url('batchProc')}"><i class="fa fa-ban"></i></a>

          <a href="javascript:location=location" title="刷新" class="btn btn-default btn-social-icon"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></a>
          <b style="color:#444">&nbsp;&nbsp;&nbsp;评论总数：{$info->total()}</b>
        </div>

        <div class="box-body table-responsive no-padding">
          <table class="table table-hover">
            <tr class="vertical-c">
              <th width="3%">
                <input type="checkbox" id="checkbox-1" class="select_all">
              </th>
              <th>评论用户ID</th>
              <th>内容</th>
              <th>显示状态</th>
              <th>操作</th>
            </tr>
            {volist name="info" id="v"}
            <tr class="vertical-c">
              <td class="text-c" width="3%"><input type="checkbox" name="comment_id[]" class="ic-checkbox index-chkbox" value="{$v.id}" /></td>
              <td>{$v.user_id}</td>
              <td>{$v.content}</td>
              <td>{$v.status? '<span class="label label-success radius">允许</span>' : '<span class="label label-danger radius">禁止</span>'}</td>
              <td>

                {if condition="show_auth('admin/AdminUser/edit')"}
                  <a href="javascript:;" title="查看回复" data-id="{$v.id}" data-url="{:url('reply')}" proc-url="{:url('replyProc')}" class="btn btn-xs btn-info btn-social-icon reply-btn"><i class="fa fa-pencil-square-o"></i></a>
                {/if}

                {if condition="show_auth('admin/AdminUser/delete')"}
                  <a href="javascript:;" title="删除" data-id="{$v.id}" data-url="{:url('delete')}" class="btn btn-xs btn-danger btn-social-icon delete-btn"><i class="fa fa-trash-o"></i></a>
                {/if}
              </td>
            </tr>
            {/volist}
          </table>
        </div>

        <div class="box-footer clearfix">
            {$info->render()}
        </div>
      </div>

    </div>
  </div>


</section>

{/block}

{block name="script"}
  <script type="text/javascript" src="__AJS__/goods_comment/index.js"></script>
{/block}